package com.jgjc.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BasicInfoDao {

    //检查桥梁是否已存在
    List<Map<String, Object>> isBridgeExists(Map<String, Object> isBridgeExistMap);

    //添加桥梁基础信息
    public int addBasicInfo(Map<Object, Object> infoMap);

    //添加桥梁基础信息
    public int addFramingInfo(@Param("bridgeId") int bridgeId);

    //根据桥梁名称模糊查询所有桥梁信息
    List<Map<String, Object>> getAllBasicInfo(@Param("name") String name);

    //根据id删除桥梁信息
    public int deleteBridge(@Param("bridgeId") int bridgeId, @Param("deleteReasonId") int deleteReasonId);

    //获取删除桥梁时的选择原因
    List<Map<String, Object>> getDeleteStatusList();

    //获取桥面分离形式
    List<Map<String, Object>> getDeckDivideTypeList();

    //获取跨越地物类型
    List<Map<String, Object>> getCrossTypeList();

    //获取桥梁分类
    List<Map<String, Object>> getBridgeCategoryList();

    //获取通行载重分类
    List<Map<String, Object>> getLoadCapacityList();

    //获取设计荷载分类
    List<Map<String, Object>> getDesignLoadList();

    //获取功能类型分类
    List<Map<String, Object>> getFunctionTypeList();

    //获取路线等级分类
    List<Map<String, Object>> getRoadLevelList();

    //获取路线编号分类
    List<Map<String, Object>> getRoadNoList();

    //添加桥梁基础信息
    public int updateBasicInfo(Map<Object, Object> infoMap);

}
